{extend name="public/nav" /}
{block name="title"} 档案管理系统 {/block}

{block name="content"}
<style type="text/css">

    .layui-form-label {
        width: auto !important;
        padding: 9px 5px;
    }

    .layui-input-block {
        margin-left: 100px;
        line-height: 36px;
    }
    .layui-btn-color{
        background-color: transparent;
        color: #2D93CA;
        font-weight: bold;
        display: block;
        width: 100%;
        border: 1px solid #1296db;
    }
</style>
<div class="site-content" style="background-color: #cccccc;">
    <div class="site-h1">
        <i class="layui-icon layui-icon-left" onclick="window.history.back(-1)"></i>查看档案
    </div>
    <div class="layui-container">
        <div class="site-text" style="margin-top: 30px;">
            <div class="layui-form">
                <input type="hidden" name="id" value="{$field.id}">
                <div class="layui-form-item">
                    <label class="layui-form-label">档案名称</label class="layui-form-label">
                    <div class="layui-input-block">
                        {$field.name}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">分公司</label>
                    <div class="layui-input-block">
                        {$field.enter_id}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">管道段</label>
                    <div class="layui-input-block">
                        {$field.pipe_id}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">图片</label>
                    {if condition="!empty($field['pic'])"}
                    <div id="pics" style="display: block;">
                        {foreach $field['pic'] as $p}
                        <div style="width:17%;padding:1%;border:1px solid #ccc;text-align:center">
                            <input type="hidden" value="{$p}" name="pic[]">
                            <img src="{$p}" />
                        </div>
                        {/foreach}
                    </div>
                    {else}
                    <div id="pics" class="layui-input-block" style="display: block;">
                        暂无
                    </div>
                    {/if}
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">焊口编号</label>
                    <div class="layui-input-block">
                        {$field.order_id}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">桩号编号</label>
                    <div class="layui-input-block">
                        {$field.pile_number}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">施工日期</label>
                    <div class="layui-input-block">
                        {:date('Y-m-d',$field.const_time)}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">检测日期</label>
                    <div class="layui-input-block">
                        {:date('Y-m-d',$field.test_time)}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">施工单位</label>
                    <div class="layui-input-block">
                        {$field.const_unit}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">机组</label>
                    <div class="layui-input-block">
                        {$field.crew}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">焊材厂家</label>
                    <div class="layui-input-block">
                        {$field.manufactor}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">无损检测单位</label>
                    <div class="layui-input-block">
                        {$field.ndt_unit}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">监理单位</label>
                    <div class="layui-input-block">
                        {$field.supervisor_unit}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">内检测里程</label>
                    <div class="layui-input-block">
                        {$field.mileage}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">内检测编号</label>
                    <div class="layui-input-block">
                        {$field.mileage_number}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">排查结果</label>
                    <div class="layui-input-block">
                        {$field.Invest_res}
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block" style="margin: 0;">
                        <a class="layui-btn layui-btn-color" href="javascript:window.history.go(-1)">返回</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}